import {Router} from "express";
import backRouters from "@src/routes/back";
import frontRouters from "@src/routes/front";
import commonRouters from "@src/routes/common";
import verifyToken from "@src/routes/middleware";

const apiRouter = Router();
// 配置中间件(后)
apiRouter.use("/back", verifyToken, backRouters);
// 配置中间件（前）
apiRouter.use("/front", frontRouters);
// 通用
apiRouter.use("/common", commonRouters);

export default apiRouter;